﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JXT.PrimaryKey.Batman.Domain.Models;

namespace JXT.PrimaryKey.Batman.Domain.Quotation.Models
{
    /// <summary>
    /// 分时行情数据
    /// </summary>
    [Serializable]
    public class TimeSharingQuote : EntityBase<Guid>
    {
        /// <summary>
        /// 证券代码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 交易所类型
        /// </summary>
        public MarketType MarketType { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 开盘价
        /// </summary>
        public double OpenPrice { get; set; }

        /// <summary>
        /// 收盘价
        /// </summary>
        public double ClosePrice { get; set; }

        /// <summary>
        /// 最新价
        /// </summary>
        public double LastPrice { get; set; }

        /// <summary>
        /// 均价
        /// </summary>
        public double AveragePrice { get; set; }

        /// <summary>
        /// 最高价
        /// </summary>
        public double HighestPrice { get; set; }

        /// <summary>
        /// 最低价
        /// </summary>
        public double LowestPrice { get; set; }

        /// <summary>
        /// 成交量
        /// </summary>
        public long TradingVolume { get; set; }

        /// <summary>
        /// 成交额
        /// </summary>
        public double Turnover { get; set; }

        /// <summary>
        /// 交易笔数
        /// </summary>
        public uint TradingNum { get; set; }

        /// <summary>
        /// 涨跌
        /// </summary>
        public double ChangePrice { get; set; }

        /// <summary>
        /// 涨跌率
        /// </summary>
        public double ChangeRate { get; set; }
    }
}
